package com.jinke.api.modules.app.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jinke.api.handle.StringListTypeHandler;
import com.jinke.api.modules.app.enums.QuestionStatus;
import com.jinke.api.modules.app.enums.QuestionType;
import com.jinke.api.modules.app.enums.SysMessageReadStatus;
import com.jinke.api.modules.base.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author macro
 * @since 2024-01-24
 */
@Getter
@Setter
@TableName("user_question")
@ApiModel(value = "UserQuestion对象", description = "")
public class UserQuestion extends BaseEntity {
    @ApiModelProperty("工单号")
    private String orderNo;

    @ApiModelProperty("用户ID")
    private Integer userId;

    @ApiModelProperty("提问类型 0 问题咨询 1 地址修改 2 其他")
    private QuestionType type;

    @ApiModelProperty("主题")
    private String title;

    @ApiModelProperty("内容")
    private String content;
    @TableField(typeHandler = StringListTypeHandler.class)
    private List<String> attachments;

    @ApiModelProperty("状态 0 待处理 1 已处理")
    private QuestionStatus status;

    @ApiModelProperty("已读未读 (0, \"未读\"),\n" +
            "(1, \"已读\"),;")
    private SysMessageReadStatus userUnread;
    @ApiModelProperty("已读未读 (0, \"未读\"),\n" +
            "(1, \"已读\"),;")
    private SysMessageReadStatus adminUnread;
}
